﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RemediationTest.Remediation;

namespace RemediationTest
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            RemediationService service = new RemediationService();
            string[] blah = new string[5];
            string[] foo;
            string bar = "";
            TextBox6.Text = "";

            blah[0] = TextBox1.Text;
            blah[1] = TextBox2.Text;
            blah[2] = TextBox3.Text;
            blah[3] = TextBox4.Text;
            blah[4] = TextBox5.Text;

            foo = service.GetRemediation(blah);

            for (int i = 0; i < foo.Length; i++)
            {
                bar += foo[i];
                bar += Environment.NewLine;
            }

            TextBox6.Text = bar;

            TextBox1.Text = "";
            TextBox2.Text = "";
            TextBox3.Text = "";
            TextBox4.Text = "";
            TextBox5.Text = "";
        }
    }
}
